﻿using System;
using System.ComponentModel;


namespace FixtureManageSystem.Models
{
    public class BaseModel
    {

        public void DisplayProperty()
        {
            foreach (PropertyDescriptor descriptor in TypeDescriptor.GetProperties(this)){
                string name = descriptor.Name;
                object value = descriptor.GetValue(this);
                Console.WriteLine("{0} = {1}", name, value);
            }
        }
    }
}
